package cn.ztydata.teachingsystem.heaven.web.dto;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 系部
 *
 * @author fanruiping
 * @since 2014-11-28
 */

public class DepartmentDto {
    private Long id;//系部编号
    @NotNull
    @Length(min = 1, max = 10, message = "系部编码长度应为1~10")
    private String code;//系部编码
    @NotNull
    @Length(min = 1, max = 60, message = "系部名称长度应为1~60")
    private String name;//系部名称
    private String remark;//简介

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
